package com.codeduck.async;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * 简单的理解异步任务：主程序启动后访问 {@link com.codeduck.async.controller.IndexController}
 *
 * 深入理解异步与同步任务：测试类 {@link com.codeduck.async.AsyncTaskTest}
 *
 * @author: <a href="mailto:codeduck@163.com">Codeduck</a>
 * @createDate: 2021-12-26
 */
@SpringBootApplication
@EnableAsync // 开启对异步的支持
public class AsyncApplication {

    public static void main(String[] args) {
        SpringApplication.run(AsyncApplication.class, args);
    }
}
